//
//  AccountTool.h
//  BeautyPicture
//
//  Created by 沈振邦 on 15/11/11.
//  Copyright © 2015年 szb. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BPBaseTool.h"
#import "BPRegisterAccountParam.h"
#import "BPAccount.h"
#import "BPAddressModel.h"
#import "paramAddress.h"

@interface AccountTool : BPBaseTool

/**
 *  存储帐号
 */
+ (void)save:(BPAccount *)account;

/**
 *  读取帐号
 */
+ (BPAccount *)account;

/**传账号信息，返回是否成功的结果*/
+ (void)postAccountWithParam:(BPRegisterAccountParam *)param success:(void (^)(BPAccount *result))success failure:(void (^)(NSError *error))failure;

/**获取短信验证码*/
+ (void)receiveMessageCode:(NSString *)phoneNumber success:(void (^)(BPRegisterAccountParam *result))success failure:(void (^)(NSError *error))failure;

+ (void)addOrChangeOrdeleteAddress:(BPAddressModel *)param success:(void (^)(paramAddress *result))success failure:(void (^)(NSError *error))failure;


@end
